package com.qixin.api.service;

import com.baomidou.mybatisplus.service.IService;
import com.qixin.api.bean.*;

import javax.servlet.http.HttpSession;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 薛向毅
 * @since 2018-09-28
 */
public interface ComPeopleService extends IService<ComPeople> {

    ResultPage<ComPeople> selectMyPage(VoPage voPage ,HttpSession session);
    ResultPage<ComPeople> selectALL(VoPage voPage)  ;
    ResultPage<ComPeople> selectphone(VoPage voPage, Long phone)  ;
    String phonea( Long id)  ;
    String phoneb( Long id)  ;
    /**
     *
     * @param ptName session获取的企业名称
     * @param id   session获取的企业ID
     * @return 返回ztree需要的数据
     */
    List<ZtreeBean> findPtZtree(String ptName, Long id);
    /**
     *
     * @param id   session获取的企业ID
     * @return 返回列表需要的数据
     */
    ResultPage<ComPeople> PeopleList(VoPage voPage,   Long id,Long ptId,String peopleName);

    /**
     * 给某个企业添加一个用户
     * @param ptId   企业id
     * @return
     */
    String addPeople(ComPeople comPeople,Long ptId);
    /**
     * 微信公众号 调用  充电结束后 扣除对应金额
     * @param userId  用户ID
     * @param moeny 扣除的金额
     * @return
     */
    boolean removeMoenyForWeChat(Long userId, BigDecimal moeny);
    //个人忘记密码
	String updatePeople(String param,String code);
}
